﻿using System;
using nRoute.Components.Composition;

namespace nRoute.Navigation.Mapping
{
    public class MapNavigationContentAttribute
		 : MapNavigationBaseAttribute
    {
        public MapNavigationContentAttribute(string url)
		 : base(url) { }

        public MapNavigationContentAttribute(Uri url)
            : base(url.ToString()) { }

#region Overrides

        protected internal override IResourceLocator GetResourceLocator(Type targetType)
        {
            return new DefaultNavigationContentLocator(new NavigationContentMeta(Url, targetType));
        }

#endregion

    }
}
